package org.example.system.service;

import org.example.system.entity.ExampleRoute;
import org.example.system.mapper.ExampleRouteMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class ExampleRouteService {
    @Autowired
    private ExampleRouteMapper exampleRouteMapper;
    public List<ExampleRoute> findAll() { return exampleRouteMapper.selectAll(); }
    public int add(ExampleRoute route) { return exampleRouteMapper.insert(route); }
    public int delete(Long id) { return exampleRouteMapper.deleteById(id); }
} 